/*
 * led.c
 *
 *  Created on: 2023年2月25日
 *      Author: DongDongTian
 */
#include "led.h"
#include "hbird_sdk_soc.h"

void LED_init()
{
	gpio_enable_output(GPIOA, D7);
	gpio_enable_output(GPIOA, D6);
	gpio_enable_output(GPIOA, D5);
	gpio_enable_output(GPIOA, D4);
}

void LED_Waterfull()
{
	D7L;
	delay_1ms(500);
	D7M;
	delay_1ms(500);
	D6L;
	delay_1ms(500);
	D6M;
	delay_1ms(500);
	D5L;
	delay_1ms(500);
	D5M;
	delay_1ms(500);
	D4L;
	delay_1ms(500);
	D4M;
	delay_1ms(500);
}




